package cn.relx.org.mapper;

import cn.relx.basic.mapper.BaseMapper;
import cn.relx.org.domain.Employee;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface EmployeeMapper extends BaseMapper<Employee> {

    Employee findByName(String username);

    void removeEmp(Long id);

    void addEmp(@Param("eid") Long id,@Param("roles") List<Long> roles);

    List<Long> findRoleById(Long id);

    void deleteRoleById(Long id);

    Employee selectByLogininfoId(Long id);

    Employee findByLogininfoId(Long id);

    List<Employee> selectByShopId(Long shopId);

}
